class MedProcedure implements Comparable {
    String  name
    Date    datePerformed
    String  notes

    static belongsTo = Doctor
    static optionals = ["datePerformed","notes"]
    static constraints = {
    //    name(inList:['Amputation','Biopsy','Chest X-Ray'])
        datePerformed()
        notes()
    }
    public int compareTo(Object obj) {
        return created <=> obj.created
    }
    String toString() { "${this.name}" }
}
